﻿<%@ Page Language="C#" MasterPageFile="~/shop.Master" AutoEventWireup="true" CodeBehind="gouwuchelist.aspx.cs" Inherits="WebApplication6.gouwuchelist" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<table width="100%" border="1">

<tr>
<td align="center" colspan="5"><span style="color:Red;font-size:20px;font-weight:bold;">
    购物车列表</span></td>
</tr>

<tr>
<td align="center">商品名</td>
<td align="center">单价</td>
<td align="center">数量</td>
<td align="center">总价</td>
<td align="center">操作</td>
</tr>


<asp:Repeater runat="server" ID="gouwchelistRepeater" >
    
    <ItemTemplate>

<tr>
<td align="center"><%#Eval("spname")%></td>
<td align="center"><%#Eval("jiage")%>￥</td>
<td align="center"><%#Eval("num")%></td>
<td align="center"><%#Eval("zongjia")%>￥

</td>
<td align="center">
<a href="gouwuche2.aspx?id=<%#Eval("id")%>&action=jia">购买数量加一</a>&nbsp;&nbsp;
<a href="gouwuche2.aspx?id=<%#Eval("id")%>&action=jian">购买数量减一</a>&nbsp;&nbsp;
<a href="gouwuche2.aspx?id=<%#Eval("id")%>&action=del">删除</a>&nbsp;&nbsp;
</td>
</tr>


</ItemTemplate>
    
</asp:Repeater>
<tr>
<td align="center" colspan="1"><span style="color:Red;font-size:20px;font-weight:bold;">
    总价：</span></td>
<td align="center" colspan="2"><span style="color:Red;font-size:20px;font-weight:bold;">
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>￥</span></td>
<td align="center" colspan="2"><span style="color:Red;font-size:20px;font-weight:bold;">
  <a href="dingdan.aspx">生成订单</a>
  </span></td>
</tr>

</table>

</asp:Content>
